//package com.example.myapplication.mvp.course;
//
//import androidx.annotation.NonNull;
//import androidx.annotation.Nullable;
//import androidx.fragment.app.Fragment;
//import androidx.appcompat.widget.Toolbar;
//
//
//import com.example.myapplication.R;
//import com.example.myapplication.RecyclerBaseAdapter;
//
//import java.util.List;
//
//public class SelectWeekAdapter extends RecyclerBaseAdapter<String> {
//
//    private int selectIndex = 2;
//
//    public SelectWeekAdapter(int itemLayoutId, @NonNull List<String> data) {
//        super(itemLayoutId, data);
//    }
//
//    @Override
//    protected void convert(ViewHolder holder, int position) {
//        holder.setText(R.id.tv_text, getData().get(position));
//        if (selectIndex == position) {
//            holder.itemView.setSelected(true);
//        } else {
//            holder.itemView.setSelected(false);
//        }
//    }
//}
